package com.ruoyi.report.controller.test;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.report.domain.test.HanZaiChildren;
import com.ruoyi.report.service.test.HanZaiChildrenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: 憨憨爱崽崽
 * Name: TestController 组件
 * Date: 2022/4/22
 * Time: 20:22
 **/
@RestController
@RequestMapping("/component")
public class ComponentController {
    @Autowired
    private HanZaiChildrenService childrenService;

    /**
     * 职位三级联动组件
     * @return
     */
    @RequestMapping("/dept_user_cascader")
    private AjaxResult componentDeptUserCascader(){
        return AjaxResult.success("children",childrenService.selectChildren());
    }
}
